package com.job.sun;

/**
 * @author legion
 * @version 1.0
 * @since 2022-07-01 17:31:07
 */
public class Array {
    public static void main(String[] args) {
        String[] neams= new String[]{"张龙","赵虎","王朝","马汉","董平","薛霸","李贵","娄清"};
        System.out.println(neams.length-1);
        for(int i=0;i<neams.length;i++){
            System.out.println(i+"\t"+neams[i]);
        }
       for (int i=neams.length-1;i>=0;i--){
           System.out.println(i+"\t"+neams[i]);
       }
         neams[1]="张春阳";
        for (int i=neams.length-1;i>=0;i--){
            System.out.println(i+"\t"+neams[i]);
        }

    }
}